package com.itbaizhan.shopping_order_service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itbaizhan.shopping_common.pojo.Orders;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author spf
 * @date 2024/1/19
 * @time 14:42
 */

// 订单持久层
@Mapper
public interface OrdersMapper extends BaseMapper<Orders> {

    Orders findById(String id);


    List<Orders> findOrdersByUserIdAndStatus(Long userId, Integer status);
}
